package com.neusoft.neuiotms.dcom.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.auth.common.bean.UserBean;
import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcom.dto.QuestionnaireDTO;

public interface QuestionnaireService {

    List<QuestionnaireDTO> index(Searchable searchable, final UserBean userBean);

    Page<QuestionnaireDTO> search(Pageable pageable, Searchable searchable, UserBean userBean);

    QuestionnaireDTO create(QuestionnaireDTO dto);

    QuestionnaireDTO update(Long id, QuestionnaireDTO dto);

    QuestionnaireDTO details(Long id);

    void delete(Long id);

    /**
     * 一线运维组长下发任务
     *
     * @param id
     * @return
     */
    boolean publish(Long id);
}
